4476f8c94183a90c6c4e5d87a2957240b00ffc39,core/src/main/java/com/orientechnologies/orient/core/sql/method/misc/OSQLMethodFormat.java,OSQLMethodFormat,execute,#OIdentifiable#OCommandContext#Object#Object[]#,40
Before Change
if (v != null) {
if (ioResult instanceof Date) {
final SimpleDateFormat format = new SimpleDateFormat(v.toString());
format.setTimeZone(ODateHelper.getDatabaseTimeZone());
ioResult = format.format(ioResult);
} else {
ioResult = ioResult != null ? String.format(v.toString(), ioResult) : null;
After Change
if (v != null) {
if (ioResult instanceof Date) {
final SimpleDateFormat format = new SimpleDateFormat(v.toString());
if (iMethodParams.length > 1)
format.setTimeZone(TimeZone.getTimeZone(iMethodParams[1].toString()));
else
format.setTimeZone(ODateHelper.getDatabaseTimeZone());
ioResult = format.format(ioResult);
} else {
ioResult = ioResult != null ? String.format(v.toString(), ioResult) : null;